package mju.cn.sixweek;

import javafx.beans.property.LongProperty;
import jdk.nashorn.internal.objects.annotations.Property;
import mju.cn.sixweek.entity.Role;
import mju.cn.sixweek.mapper.RoleMapper;
//import mju.cn.sixweek.mapper.RoleMapperImpl;
import mju.cn.sixweek.service.UpdateMapperService;
import mju.cn.sixweek.service.impl.UpdateMapperServiceImpl;
import mju.cn.sixweek.util.AppContext;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @program: java-ee_31
 * @description:
 * @author: HP
 * @time: 2020/10/20 19:29
 */

public class roleText {
    public static void main(String[] args) {
//        ApplicationContext ctx= new ClassPathXmlApplicationContext("spring-cfg.xml");
//        RoleMapper roleMapper = ctx.getBean(RoleMapper.class);
        UpdateMapperService updateMapperService = new UpdateMapperServiceImpl();
        updateMapperService.updateMS(1,2,0);
        List<Role> roles = AppContext.TAG().findAll(1);
        System.out.println(roles);
    }
}
